package com.bytedance.common.plugin.interfaces.pushmanager;

import com.bytedance.common.utility.e;
import com.bytedance.common.utility.e.a;

import java.util.List;
import java.util.Map;

public class PushPluginDepend {
    public class ReqContext {
        public boolean addCommonParams;
        public boolean fetchResponseHeaders;
        public Map responseHeaders;

        public ReqContext() {

        }

        public a toNetworkClientReqContext() {
            a v0 = new a();
            v0.a = this.addCommonParams;
            return v0;
        }
    }

    private static PushPluginDepend sPushPluginDepend;

    public PushPluginDepend() {

    }

    public String get(String arg2) throws Exception {
        return e.a().a(arg2);
    }

    public String get(String arg3, Map arg4, ReqContext arg5) throws Exception {
        return e.a().a(arg3, arg4, arg5.toNetworkClientReqContext());
    }

    public static PushPluginDepend inst() {
        PushPluginDepend v0_1;
        Class v1 = PushPluginDepend.class;
        synchronized (v1) {
            if (PushPluginDepend.sPushPluginDepend == null) {
                PushPluginDepend.sPushPluginDepend = new PushPluginDepend();
            }

            v0_1 = PushPluginDepend.sPushPluginDepend;
        }
        return v0_1;
    }

    public String post(String arg4, List arg5) throws Exception {
        e v0 = e.a();
        a v1 = new a();
        v1.a = true;
        return v0.a(arg4, arg5, null, v1);
    }

    public String post(String arg3, List arg4, Map arg5, ReqContext arg6) throws Exception {
        return e.a().a(arg3, arg4, arg5, arg6.toNetworkClientReqContext());
    }

    public String post(String arg3, byte[] arg4, Map arg5, ReqContext arg6) throws Exception {
        return e.a().a(arg3, arg4, arg5, arg6.toNetworkClientReqContext());
    }

    public String post(String arg7, byte[] arg8, boolean arg9, String arg10, boolean arg11) throws Exception {
        return e.a().a(arg7, arg8, arg9, arg10, arg11);
    }
}

